<template>
    <div>
      <p>Home</p>
      <button @click="jumpList">跳转列表页</button>
      <button @click="jumpLogin">退出</button>
    </div>
  </template>

<script>
import { REMOVE_TOKEN } from '@/utils/token'
export default {
  name: 'Home',
  methods: {
    jumpList () {
      /*   this.$router.push({
          name: 'Artclelist',
          query: { pageSize: 10, pageNum: 1, total: 100 }
        }) */
      this.$router.push({
        path: 'artclelist',
        query: { pageSize: 10, pageNum: 1, total: 100 }
      })
      /*    this.$router.replace({
          path: 'artclelist',
          query: { pageSize: 10, pageNum: 1, total: 100 }
        }) */
    },
    jumpLogin () {
      REMOVE_TOKEN()
      this.$router.push({ path: '/login' })
    }
  }
}
</script>

  <style lang="scss" scoped></style>
